package ihm;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JDialog;

public class FenetreAide extends JDialog implements ActionListener{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8171124291514950624L;
	private PanneauAide panneauAide;
	
	public FenetreAide() 
	{
		setTitle("Aide");
		setLocation(100,150);	
		setResizable(false);
		panneauAide=new PanneauAide();		
		getContentPane().add(panneauAide);		
		panneauAide.getQuitter().addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		if(e.getSource()==panneauAide.getQuitter())
		{
			setVisible(false);	
			dispose();
		}				
	}			
}
